package com.hwg.emp.service.impl;

import com.hwg.emp.common.service.CommonService;
import com.hwg.emp.dao.DaoFactory;
import com.hwg.emp.dao.RoleDAO;
import com.hwg.emp.model.RoleMD;
import com.hwg.emp.service.RoleService;

public class RoleServiceImpl extends CommonService implements RoleService {

	private RoleDAO dao = DaoFactory.getDao(RoleDAO.class);
	
	@Override
	public RoleMD getRoleByEmpId(String id) throws Exception {
		RoleMD role = dao.selectRoleByEmpId(id);
		assertNotNull("没有找到对应的角色", role);
		return role;
	}

}
